/*
 * serialize.hpp
 *
 *  Created on: 2012-9-26
 *      Author: Administrator
 */

#ifndef CPPSERIALIZE_HPP_
#define CPPSERIALIZE_HPP_


/*
 * serialize.cpp
 *
 *  Created on: 2012-9-26
 *      Author: Administrator
 */

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libxml/parser.h>

#include "../protocolMaker.hpp"
#include "../serialize.hpp"


/**
 * 头文件
 */
size_t makeHeader( char* write_to , xmlNode* node , enum SERIALIZE_TYPE type )  ;

/**
 * 构造函数
 */
size_t makeConstructor( char* write_to , xmlNode* node )  ;
/**
 *  析构函数
 */
size_t makeDestruction( char* write_to , xmlNode* node ) ;

/**
 * 序列化
 */
size_t makeSerialize( char* write_to , xmlNode* node , enum SERIALIZE_TYPE serializeType )  ;
/*
 * 反序列化
 */
size_t makeUnserialize( char* write_to , xmlNode *node ) ;










#endif /* SERIALIZE_HPP_ */
